<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="layout/admin">
<body>
<main layout:fragment="content">
    <article class="container" style="padding: 3% 0 2%;">
        <header class="row">
            <div class="col s12">
                <blockquote class="flow-text left" th:text="|活动统计:|">Add answer</blockquote>
            </div>
        </header>
        <section>
            <div class="col s12 m6">
                <ul class="collection">
                    <li class="collection-item center">Personal data</li>
                    <li class="collection-item">
                            <span class="badge">
                                <span th:text="${cardActivity.getParticipants()}">Nick</span>
                            </span>参与人数:
                    </li>
                    <li class="collection-item">
                            <span class="badge">
                                <span th:text="${cardActivity.getFullCollectors()}">Nick</span>
                            </span>集满人数:
                    </li>
                </ul>
            </div>
            <form  th:action="@{'/data/' + ${id} + '/on'}" method="post">
                <div class="row">
                    <div class="col s12 center">
                        <button class="btn waves-effect waves-light btn-large"
                                type="submit" name="on">上架</button>
                    </div>
                </div>
            </form>
            <form  th:action="@{'/data/' + ${id} + '/off'}" method="post">
                <div class="row">
                    <div class="col s12 center">
                        <button class="btn waves-effect waves-light btn-large"
                                type="submit" name="off">下架</button>
                    </div>
                </div>
            </form>
        </section>
    </article>
</main>
</body>
</html>
